//
//  LBUserInfoTool.m
//  car_service_seller
//
//  Created by  LiuBi_GC_iMac on 2018/5/29.
//  Copyright © 2018年 cn.sixarm.seller. All rights reserved.
//

#import "LBUserInfoTool.h"

#define FILEPATH [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"account.archiver"]

@implementation LBUserInfoTool
///** 存储用户信息 */
//+ (void)saveUserInfo:(LBUserInfoModel *)userinfo {
//    DLog(@"%@",FILEPATH);
//    [NSKeyedArchiver archiveRootObject:userinfo toFile:FILEPATH];
//}
//
///** 获取用户信息 */
//+ (LBUserInfoModel *)userinfo {
//    LBUserInfoModel *userinfo = [NSKeyedUnarchiver unarchiveObjectWithFile:FILEPATH];
//    if (userinfo == nil) {
//        userinfo = [[LBUserInfoModel alloc] init];
//    }
//    return userinfo;
//}
//
///** 删除用户信息 */
//+ (void)deleteUserInfo {
//    NSFileManager* fileManager = [NSFileManager defaultManager];
//    BOOL blHave = [[NSFileManager defaultManager] fileExistsAtPath:FILEPATH];
//    if (!blHave) {
//        return ;
//    } else {
//        BOOL blDele = [fileManager removeItemAtPath:FILEPATH error:nil];
//        if (blDele) {
//            DLog(@"删除成功");
//        }else {
//            DLog(@"删除失败");
//        }
//    }
//}
@end
